package com.information.manage.common.utils;

import java.io.Serializable;
import java.util.List;

public class PageUtils implements Serializable {
	private static final long serialVersionUID = 1L;
	private int total;//总记录条数
	private int pages;//总页数
	private List<?> rows;

	public PageUtils(List<?> list, int total) {
		this.rows = list;
		this.total = total;
	}
	

	public PageUtils(int total, int pages, List<?> rows) {
		super();
		this.total = total;
		this.pages = pages;
		this.rows = rows;
	}
	


	public int getPages() {
		return pages;
	}


	public void setPages(int pages) {
		this.pages = pages;
	}


	public int getTotal() {
		return total;
	}

	public void setTotal(int total) {
		this.total = total;
	}

	public List<?> getRows() {
		return rows;
	}

	public void setRows(List<?> rows) {
		this.rows = rows;
	}

}